﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;


namespace LogForParameter.Model
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("MEDICAL_ORDER", "wmblog_oracle")]
    public class MEDICAL_ORDER
    {
        public MEDICAL_ORDER()
        {
        }
        /// <summary>
        /// 手动添加字段：sqlserver或oralce支持的行号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int RowIndex { get; set; }
        /// <summary>
        /// Desc:医嘱流水号
        /// Default:
        /// Nullable:False
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string ORDER_SN { get; set; }
        /// <summary>
        /// Desc:住院流水号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string PATIENT_SN { get; set; }
        /// <summary>
        /// Desc:医嘱代码
        /// Default:
        /// Nullable:True
        /// </summary>
        public string ORDER_CODE { get; set; }
        /// <summary>
        /// Desc:医嘱名称
        /// Default:
        /// Nullable:True
        /// </summary>
        public string ORDER_NAME { get; set; }
        /// <summary>
        /// Desc:医嘱内容及用法
        /// Default:
        /// Nullable:True
        /// </summary>
        public string ORDER_CONTENT { get; set; }
        /// <summary>
        /// Desc:1长期  2临时  3新生儿长期 4新生儿临时
        /// Default:
        /// Nullable:True
        /// </summary>
        public short? LONG_FLAG { get; set; }
        /// <summary>
        /// Desc:医嘱类别(对应字典的"医嘱类别")
        /// Default:
        /// Nullable:True
        /// </summary>
        public string ORDER_TYPE { get; set; }
        /// <summary>
        /// Desc:开嘱医生工号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string CREATOR { get; set; }
        /// <summary>
        /// Desc:创建时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? CREATE_TIME { get; set; }
        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? MODIFY_TIME { get; set; }
        /// <summary>
        /// Desc:父医嘱流水号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string PARENT_ORDER_SN { get; set; }
        /// <summary>
        /// Desc:医生说明
        /// Default:
        /// Nullable:True
        /// </summary>
        public string DOCTOR_MEMO { get; set; }
        /// <summary>
        /// Desc:执行类型
        /// Default:
        /// Nullable:True
        /// </summary>
        public string EXECUTE_TYPE { get; set; }
        /// <summary>
        /// Desc:频次名称
        /// Default:
        /// Nullable:True
        /// </summary>
        public string FREQUENCY_NAME { get; set; }
        /// <summary>
        /// Desc:医嘱状态  10：编辑中；20：下达/新增医嘱未确认接收；30：新增医嘱已确认接收；40：医嘱撤销；45：护士确认医嘱可撤销；50：已确认执行；60：停止医嘱未确认接收；70：停止医嘱已确认接收
        /// Default:
        /// Nullable:True
        /// </summary>
        public short? STATE { get; set; }
        /// <summary>
        /// Desc:开始时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? START_TIME { get; set; }
        /// <summary>
        /// Desc:预计结束时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? INTENDING_STOP_TIME { get; set; }
        /// <summary>
        /// Desc:药房识别
        /// Default:
        /// Nullable:True
        /// </summary>
        public short? PHARMACY_CODE { get; set; }
        /// <summary>
        /// Desc:提交时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? SUBMIT_TIME { get; set; }
        /// <summary>
        /// Desc:停止时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? STOP_TIME { get; set; }
        /// <summary>
        /// Desc:停止的操作人工号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string STOP_ID { get; set; }
        /// <summary>
        /// Desc:确认时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? AFFIRM_TIME { get; set; }
        /// <summary>
        /// Desc:确认人工号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string AFFIRM_ID { get; set; }
        /// <summary>
        /// Desc:首次执行时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? FIRST_EXECUTE_TIME { get; set; }
        /// <summary>
        /// Desc:首次执行人工号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string FIRST_EXECUTE_ID { get; set; }
        /// <summary>
        /// Desc:确认停止时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? AFFIRM_STOP_TIME { get; set; }
        /// <summary>
        /// Desc:确认停止人工号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string AFFIRM_STOP_ID { get; set; }
        /// <summary>
        /// Desc:撤销前状态，对应state参数
        /// Default:
        /// Nullable:True
        /// </summary>
        public short? BEFORE_STATE { get; set; }
        /// <summary>
        /// Desc:科室代码
        /// Default:
        /// Nullable:True
        /// </summary>
        public string DEPT_CODE { get; set; }
        /// <summary>
        /// Desc:科室名称
        /// Default:
        /// Nullable:True
        /// </summary>
        public string DEPT_NAME { get; set; }
        /// <summary>
        /// Desc:0否 1加急
        /// Default:
        /// Nullable:True
        /// </summary>
        public short? IS_EMERGENCY { get; set; }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>
        public short? TURN_TO_LONG_FLAG { get; set; }
        /// <summary>
        /// Desc:0当天执行 1明天执行
        /// Default:
        /// Nullable:True
        /// </summary>
        public short? EXECUTE_TOMORROW { get; set; }
        /// <summary>
        /// Desc:撤销人工号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string CANCEL_USER_ID { get; set; }
        /// <summary>
        /// Desc:撤销时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? CANCEL_TIME { get; set; }
        /// <summary>
        /// Desc:确认撤销人工号
        /// Default:
        /// Nullable:True
        /// </summary>
        public string AFFIRM_CANCEL_USER_ID { get; set; }
        /// <summary>
        /// Desc:确认撤销时间
        /// Default:
        /// Nullable:True
        /// </summary>
        public DateTime? AFFIRM_CANCEL_TIME { get; set; }
        /// <summary>
        /// Desc:医嘱参考单价
        /// Default:
        /// Nullable:True
        /// </summary>
        public double? PRICE { get; set; }
        /// <summary>
        /// Desc:1医生录入 2护士录入
        /// Default:
        /// Nullable:True
        /// </summary>
        public short? DOCTOR_FLAG { get; set; }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>
        public short IS_LOCK { get; set; }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>
        public string CLI_PATH_SN { get; set; }
        /// <summary>
        /// Desc:执行科室代码(目前只有治疗医嘱有用)
        /// Default:
        /// Nullable:True
        /// </summary>
        public string EXECUTE_DEP_CODE { get; set; }
        /// <summary>
        /// Desc:开嘱医生姓名
        /// Default:
        /// Nullable:True
        /// </summary>
        public string CREATOR_NAME { get; set; }
        /// <summary>
        /// Desc:五级优化给药途径名称
        /// Default:
        /// Nullable:True
        /// </summary>
        public string ROUTE_NAME { get; set; }
    }
}